﻿<UserControl x:Class="PictureSearch.ImageItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
             mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="300" d:DesignWidth="480">
	<UserControl.Resources></UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid x:Name="gridRoot">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="150" />
            </Grid.ColumnDefinitions>
            <StackPanel x:Name="spLoading" Grid.Column="0" Margin="5,5,5,20" VerticalAlignment="Center">
                <TextBlock Text="Loading Image ..." TextAlignment="Center" />
                <toolkit:PerformanceProgressBar x:Name="progressBar" Grid.Column="0" Height="4" IsIndeterminate="True" Margin="0,5,0,0" />
            </StackPanel>
            <Image x:Name="image" Grid.Column="0" Margin="5" Stretch="UniformToFill" ImageFailed="image_ImageFailed" ImageOpened="image_ImageOpened" />
            <StackPanel Grid.Column="1" Margin="10,10,0,5">
                <TextBlock Text="Width:" Height="35" FontSize="22" Margin="10"/>
                <TextBlock x:Name="txtWidth" Text="0" FontSize="24" Margin="10"/>
                <TextBlock Text="Height:" Height="35" FontSize="22" Margin="10" />
                <TextBlock x:Name="txtHeight" Text="0" FontSize="24" Margin="10" />
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
